package com.wolf.etl.model;


import com.alibaba.fastjson.annotation.JSONField;
import com.wolf.provider.order.info.FieldInfo;
import com.wolf.provider.order.info.IdInfo;
import com.wolf.provider.order.info.TableInfo;

import java.util.Date;

/**
 * Created by tommy's father on 2017/8/17.
 */
@TableInfo(value = "etl_transform_rule")
public class EtlTransformRuleModel {

    @IdInfo
    private Long id;

    @FieldInfo(value = "function_id")
    private Long function_id;

    @FieldInfo(value = "param1")
    private String param1;

    @FieldInfo(value = "param2")
    private String param2;

    @FieldInfo(value = "param3")
    private String param3;

    @FieldInfo(value = "param4")
    private String param4;

    /**
     * 创建人
     */
    @FieldInfo(value = "creator")
    private String creator = "admin";

    /**
     * 创建时间
     */
    @FieldInfo(value = "create_time")
    private Date create_time = new Date();

    /**
     * 修改人
     */
    @JSONField(format = "yyyy-MM-dd")//数据库导出页面时json格式化
    @FieldInfo(value = "modified_person")
    private String modified_person;

    /**
     * 修改时间
     */
    @JSONField(format = "yyyy-MM-dd")//数据库导出页面时json格式化
    @FieldInfo(value = "modified_time")
    private Date modified_time;

    /**
     * 租户id
     */
    @FieldInfo(value = "client_id")
    private Long client_id = 100L;

    @FieldInfo(value = "etl_define_id")
    private Long etl_define_id;

    @FieldInfo(value = "trans_def_id")
    private Long trans_def_id;

    @FieldInfo(value = "name")
    private Long name;

    @FieldInfo(value = "type_id")
    private Long type_id;

    @FieldInfo(value = "transform_cxt")
    private String transform_cxt;

    @FieldInfo(value = "remark")
    private String remark;

    @FieldInfo(value = "status")
    private int status;

    @FieldInfo(value = "dialect")
    private Integer dialect;

    public Integer getDialect() {
        return dialect;
    }

    public void setDialect(Integer dialect) {
        this.dialect = dialect;
    }

    public Long getTrans_def_id() {
        return trans_def_id;
    }

    public void setTrans_def_id(Long trans_def_id) {
        this.trans_def_id = trans_def_id;
    }

    public Long getName() {
        return name;
    }

    public void setName(Long name) {
        this.name = name;
    }

    public Long getType_id() {
        return type_id;
    }

    public void setType_id(Long type_id) {
        this.type_id = type_id;
    }

    public String getTransform_cxt() {
        return transform_cxt;
    }

    public void setTransform_cxt(String transform_cxt) {
        this.transform_cxt = transform_cxt;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public String getModified_person() {
        return modified_person;
    }

    public void setModified_person(String modified_person) {
        this.modified_person = modified_person;
    }

    public Date getModified_time() {
        return modified_time;
    }

    public void setModified_time(Date modified_time) {
        this.modified_time = modified_time;
    }

    public Long getClient_id() {
        return client_id;
    }

    public void setClient_id(Long client_id) {
        this.client_id = client_id;
    }

    public Long getFunction_id() {
        return function_id;
    }

    public void setFunction_id(Long function_id) {
        this.function_id = function_id;
    }

    public String getParam1() {
        return param1;
    }

    public void setParam1(String param1) {
        this.param1 = param1;
    }

    public String getParam2() {
        return param2;
    }

    public void setParam2(String param2) {
        this.param2 = param2;
    }

    public String getParam3() {
        return param3;
    }

    public void setParam3(String param3) {
        this.param3 = param3;
    }

    public String getParam4() {
        return param4;
    }

    public void setParam4(String param4) {
        this.param4 = param4;
    }

    public Long getEtl_define_id() {
        return etl_define_id;
    }

    public void setEtl_define_id(Long etl_define_id) {
        this.etl_define_id = etl_define_id;
    }
}
